from matplotlib import pyplot as plt
years = [1950, 1960]
GDP = [30.2, 350.1]
plt.plot(years, GDP, color='green')
plt.title("GDP示意图")
plt.ylabel("亿元")
plt.show()